package models

import "registration-booking/global"

type TestComboProject struct {
	ID
	ComboId   uint `json:"combo_id" gorm:"index:comment:体检套餐ID"`
	ProjectId uint `json:"project_id" gorm:"index:comment:体检项目ID"`
	Timestamps
	SoftDeletes
}

func FindComboProjectList(comboId uint) (testComboProjects []TestComboProject, count int64, err error) {
	err = global.App.DB.Where("combo_id", comboId).Find(&testComboProjects).Count(&count).Error
	return
}
